#ifndef ALG_DUMB1_HPP
#define ALG_DUMB1_HPP

class Dumb1: public PathAlg
{
public:
    ~Dumb1(){}

    Result step( Map &map )
    {
        if( map.x() < map.dX() )
        {
            map.walk( EAST );
        }
        else if( map.x() > map.dX() )
        {
            map.walk( WEST );
        }
        else if( map.y() < map.dY() )
        {
            map.walk( SOUTH );
        }
        else if( map.y() > map.dY() )
        {
            map.walk( NORTH );
        }
        else return ALG_SUCCEEDED;
        return ALG_PROCESSING;
    }
};


#endif // ALG_DUMB1_HPP
